package com.linchaoen.elema.mapper;

import com.linchaoen.elema.model.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    int register(User user);

    User findByPhoneAndPwd(@Param("phone") String phone, @Param("pwd") String pwd);

    User findUserById(@Param("id") Integer id);

    int updateUserInfo(@Param("id") Integer uid, @Param("name") String name, @Param("signature") String signature);

    int resetPwd(@Param("id") Integer uid, @Param("old_pwd") String oldPwd, @Param("new_pwd") String newPwd);

}
